<include file='./header' />
<script type="text/javascript">
$(function() {
	$(".recommend_list li").mouseover(function(){
		$(this).find(".show01").hide();
		$(this).find(".show02").show();
	});
	$(".recommend_list li").mouseout(function(){
		$(this).find(".show01").show();
		$(this).find(".show02").hide();
	});
	$(".recommend_tab").css("height",$(".recommend_uc_bg").height());
});
	
</script>
</head>

<body>
<!--顶部开始-->
<include file="./top" />
<!--顶部结束-->
<!--左导航开始-->
<include file="./left" />
<!--左导航结束-->
<!--主体开始-->
<div class="main-content">
    <div class="wrapper">
        <div class="recommend_tab">
        	<div class="recomment_title">
                <h1>理财精品</h1>
                <h2>精品店分为狗、猫、豹3类产品，狗类为银行产品，猫、豹为基金产品</h2>
                <span>
                	<b><a href="__ROOT__/index.php/Uc/Recommend/recommend_dog" class="btn btn-info btn-lg btn-round">精品狗</a></b>            
                	<b class="on"><a href="__ROOT__/index.php/Uc/Recommend/recommend_cat" class="btn btn-info btn-lg btn-round">精品猫</a></b>            
                	<b><a href="__ROOT__/index.php/Uc/Recommend/recommend_leo" class="btn btn-info btn-lg btn-round">精品豹</a></b>
                </span>
            </div>
            <img src="__ROOT__/images/recommend_uc_bg.jpg" class="recommend_uc_bg" />
            <div class="clear"></div>
        </div>
        <div class="reconmmen_info">
            <div class="left">
                精品猫：活泼特性理财产品，本金风险低于10%，收益浮动精选中等风险产品。
            </div>
            <!--<div class="right">
                    <b>您也可以自助选取感兴趣的基金</b>
                    <div class="blank10"></div>
                    <div class="input-group search ">
                        <input class="form-control search" type="text" placeholder="请输入基金名称或代码">
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>-->
            <div class="clear"></div>
        </div>
        
        <div class="panel">
        	<div class="panel-body recommend_list">
            	<ul>
                	 <?php foreach($list as $k => $v):?>
                    <?php if($v['type'] == 1) {?>
                    <li>
                    	<dl class="show01">
                            <dt>预期年化收益</dt>
                            <dd><h3><?php echo $v['rate']?>%</h3></dd>
                            <dd><?php echo $v['bankname']?></dd>
                            <dd><?php echo $v['productname']?></dd>
                           
                            <dd class="gray">期限：<?php echo $v['dateline']?>天</dd>
                            <dd class="gray">起购额：<?php echo $v['minmoney']?></dd>
                            <dd><a href="javascript:void(0)" target="_blank" class="btn btn-danger">查看评论</a></dd>
                        </dl>
                        <dl class="show02">
                            <dd><p>评论：<?php echo $v['comment']?></p></dd>
                            <dd><a href="__URL__/prodetailbank/id/<?php echo $v['id']?>" target="_blank" class="btn btn-danger">查看详情</a></dd>
                        </dl>
                    </li>
                    <?php }?>
                    
                    <?php if($v['type'] == 2) {?>
                    <li>
                    	<dl class="show01">
                            <dt>近一年</dt>
                            <dd><h3><?php echo $v['rate']?>%</h3></dd>  
                            <dd>近一日：<?php 
                                if($v['funddayrate'] > 0){
                                    echo '<span style="color:red">'.$v['funddayrate'].'%↑</span>';
                                }else if($v['funddayrate'] < 0){
                                    echo '<span style="color:green">'.$v['funddayrate'].'%↓</span>';
                                }else{
                                    echo '<span>'.$v['funddayrate'].'%</span>';
                                }?></dd>
                            <dd><?php echo $v['productname']?></dd>
                            <dd class="gray">代码：<?php echo $v['tradecode']?></dd>
                            <dd class="gray">净值：<?php echo $v['fundnv']?></dd>
                            <dd><a href="javascript:void(0)" target="_blank" class="btn btn-danger">查看评论</a></dd>
                        </dl>
                        <dl class="show02">
                            <dd><p>评论：<?php echo $v['comment']?></p></dd>
                            <dd><a href="__URL__/prodetailfund/id/<?php echo $v['id']?>" target="_blank" class="btn btn-danger">查看详情</a></dd>
                        </dl>
                    </li>
                    <?php }?>
                    
                    <?php endforeach?>
                </ul>
                
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<!--主体结束-->
<!--底部开始-->
<include file="./foot" />
<!--底部结束-->
</body>
</html>
